function Sidebar ( id )
{
  this.id = id;
  this.isSidebarOpen = false;
}

Sidebar.prototype.showSidebar = function ( openSidebar )
{
  if ( this.isSidebarOpen && openSidebar ) { return; }

  var lt = ( openSidebar ? -250 : 250 );
  var anim = new YAHOO.util.Anim( this.id );  
  anim.attributes.left = { by:lt };
  anim.duration = 1;
  anim.method = YAHOO.util.Easing.easeBothStrong;

  anim.animate();

  this.isSidebarOpen = openSidebar;
} 